<include file="public:header"/>
<load href="__TMPL__public/css/item.css" />
<load href="__ROOT__/statics/js/jquery/plugins/jquery.masonry.js" />
<load href="__ROOT__/statics/js/jquery/plugins/jquery.infinitescroll.js" />
<load href="__TMPL__public/js/item.js" />
<load href="__TMPL__public/js/comments.js" />
<load href="__TMPL__public/js/album.js" />
<load href="__TMPL__public/js/user.js" />
<load href="__TMPL__public/js/user_tip.js" />
<if condition="$display_b2c_ad eq 1">
	<!--B2C随机广告-->
	<div class="mt15">
		<volist name="ad_rel" id='val' key='key'> 
			<if condition="$key eq 1">			       		
				<a href="javascript:void(0)" style="border:none; margin-right:20px;" onclick="window.open('{$val['click_url']}')"><img src="{$val.pic_url}" /></a>
				<else/>
				<a href="javascript:void(0)" style="border:none;" onclick="window.open('{$val['click_url']}')"><img src="{$val.pic_url}" /></a>
			</if>
		</volist>
	</div>
	<!--B2C随机广告结束-->
</if>
<div class="content clearfix">
    <div class="item_head mt15">
        <h2 class="red">
			<present name="pcate_info">
				{$pcate_info.name}			
			<else />
				热门
			</present>			
			<present name="cate_info">
				<span class="tag_title gray">&nbsp;&nbsp;{$cate_info.name}</span>
			</present>
		</h2>
		<include file="public:baidu_share"/>
    </div>
    <div class="item_list infinite_scroll" style="min-height:600px;">
{/*-----------------------------------------------------------------------------*/}    
        <div class="box_shadow masonry_brick mt15" style="position: absolute; top: 0px; left: 0px;">
            <div class="catalog clearfix">
            	<div class="catalog_item">
                    <h3 class="no">最新推荐</h3>
                    <div class="clearfix">
                        <volist name="recommend_cate" id="sval">
                            <a href="{:u('cate/index',array('cid'=>$sval['id']))}" style="color:{$sval.color};"
                           <if condition="$request.cid eq $sval['id']">class="on"</if>>{$sval['name']}</a>
                        </volist>
                    </div>
                </div>            	
                <volist name="cate_list" id="val">
                <div class="catalog_item">
                    <h3>{$val.name}</h3>
                    <div class="clearfix">
                        <ul>
                        <volist name="val['items']" id="sval">
                            <if condition="$sval['recommend'] eq 0">
	                           <li class="clearfixli"><a href="{:u('cate/index',array('cid'=>$sval['id']))}" style="color:{$sval.color};"
	                           <if condition="$request.cid eq $sval['id']">class="on"</if>>{$sval['name']}</a></li>
					        </if>
                            <!--a href="{:u('cate/index',array('cid'=>$sval['id']))}" style="color:{$sval.color};"
                           <if condition="$request.cid eq $sval['id']">class="on"</if>>{$sval['name']}</a-->
                        </volist>
                        </ul>
                    </div>
                </div>
                </volist>
            </div>
        </div>
{/*-----------------------------------------------------------------------------*/}            
        <include file="public:goods_list"/>
    </div>
    <if condition="$show_sp eq 1">
        <div id="more" class="center">
            <a href="{:u('cate/index',array('sp'=>2,'cid'=>$cid,'p'=>$p))}" hidefocus="true"></a>
        </div>    	
   	</if> 
    <if condition="$page neq ''">
    	<div id="page" class="page mt20 clearfix" style="display: none;">
        	<span class="page_num">{$page}</span>
        </div>
     </if>     
</div>

<include file="public:footer"/>
